<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" %>
<div class="bjui-pageContent" style="padding:20px 100px 0;">
    <legend style="font-weight:normal;">基本信息：</legend>
    <form action="/admin/user/register" data-toggle="validate" data-alertmsg="true">
        <div class="bjui-row col-2">
            <label class="row-label">用户名：</label>
            <div class="row-input" style="background: url('/com/B-JUI/themes/css/img/error-bg.png') no-repeat center">
                <input name="userModel.userName" title="用户名" size="11" data-rule="required"/>
            </div>

            <label class="row-label">邮箱：</label>
            <div class="row-input">
                <input type="text" name="userModel.emali" title="邮箱" size="20" data-rule="email"/>
            </div>
            <label class="row-label">手机：</label>
            <div class="row-input" style="background: url('/com/B-JUI/themes/css/img/error-bg.png') no-repeat center">
                <input type="text" name="userModel.phone" title="手机号" size="15" data-rule="mobile"/>
            </div>
            <label class="row-label">密码：</label>
            <div class="row-input">
                <input type="password" name="userModel.passWord" title="可以不填，默认为123456" size="16"/>
            </div>


            <label class="row-label">真实姓名：</label>
            <div class="row-input">
                <input type="text" name="userModel.name" title="真实姓名" size="8"/>
            </div>

            <label class="row-label">身份证号码：</label>
            <div class="row-input">
                <input type="text" name="userModel.idNumber" title="身份证号码" size="20" data-rule="IDcard"/>
            </div>

            <label class="row-label">性别：</label>
            <div class="row-input">
                <input type="radio" name="userModel.sex" value="1" data-toggle="icheck" data-label="男" checked>
                <input type="radio" name="userModel.sex" value="0" data-toggle="icheck" data-label="女">
            </div>

            <label class="row-label">用户类型</label>
            <div class="row-input">
                <select name="userModel.userType" title="用户类型" data-toggle="selectpicker" data-width="100"
                        data-rule="required">
                    <option value="普通用户" selected>普通用户</option>
                    <option value="内部员工">内部员工</option>
                    <option value="企业用户">企业用户</option>
                </select>
            </div>

            <label class="row-label">投资顾问：</label>
            <div class="row-input">
                <input type="text" name="userModel.salemanName" title="投资顾问" size="8"/>
            </div>

            <label class="row-label">投资顾问手机：</label>
            <div class="row-input">
                <input type="text" name="userModel.salemanPhone" title="投资顾问手机" size="15" data-rule="mobile"/>
            </div>

            <label class="row-label">微信昵称：</label>
            <div class="row-input">
                <input type="text" name="userModel.nickName" title="微信昵称" size="10"/>
            </div>

            <label class="row-label">微信OpenID：</label>
            <div class="row-input">
                <input type="text" name="userModel.openId" title="微信OpenID" size="25"/>
            </div>

            <label class="row-label">用户状态：</label>
            <div class="row-input">
                <select name="userModel.status" title="用户状态" data-toggle="selectpicker" data-width="100"
                        data-rule="required">
                    <option value="0" selected>正常</option>
                    <option value="1">注销</option>
                    <option value="2">禁用</option>
                </select>
            </div>
            <label class="row-label">是否已授权：</label>
            <div class="row-input">
                <select name="userModel.authorize" title="是否已授权" data-toggle="selectpicker" data-width="50"
                        data-rule="required">
                    <option value="false" selected>否</option>
                    <option value="true">是</option>
                </select>
            </div>
            <label class="row-label">是否已认证：</label>
            <div class="row-input">
                <select name="userModel.openAccount" title="是否已认证" data-toggle="selectpicker" data-width="50"
                        data-rule="required">
                    <option value="false" selected>否</option>
                    <option value="true">是</option>
                </select>
            </div>

            <%--<label class="row-label">注册时间：</label>--%>
            <%--<div class="row-input">--%>
                <%--<input type="text" name="userModel.registerDate" value="2017-01-01" data-toggle="datepicker" size="13">--%>
            <%--</div>--%>

            <label class="row-label">最后登录时间：</label>
            <div class="row-input">
                <input type="text" name="userModel.lastLoginDate" value="2017-01-01" data-toggle="datepicker" size="13">
            </div>

            <hr>
            <legend style="font-weight:normal;">账户信息：</legend>
            <label class="row-label">交易密码：</label>
            <div class="row-input">
                <input type="password" name="userModel.accountModel.pin" title="默认6个0" size="9" value="000000"/>
            </div>
            <label class="row-label">账户余额：</label>
            <div class="row-input">
                <input type="text" name="userModel.accountModel.balance" title="账户余额" size="9" data-rule="number" value="0.0"/>
            </div>
            <label class="row-label">累计投资总额度：</label>
            <div class="row-input">
                <input type="text" name="userModel.accountModel.assets" title="累计投资总额度" size="9" data-rule="number" value="0.0"/>
            </div>
            <label class="row-label">累计收益：</label>
            <div class="row-input">
                <input type="text" name="userModel.accountModel.profit" title="累计收益" size="9" data-rule="number" value="0.0"/>
            </div>
            <label class="row-label">冻结金额：</label>
            <div class="row-input">
                <input type="text" name="userModel.accountModel.freezing" title="冻结金额" size="9" data-rule="number" value="0.0"/>
            </div>
            <label class="row-label">待收收益：</label>
            <div class="row-input">
                <input type="text" name="userModel.accountModel.collect" title="待收收益" size="9" data-rule="number" value="0.0"/>
            </div>
            <label class="row-label">待还金额：</label>
            <div class="row-input">
                <input type="text" name="userModel.accountModel.still" title="待还金额" size="9" data-rule="number" value="0.0"/>
            </div>
            <label class="row-label">总贷款额度：</label>
            <div class="row-input">
                <input type="text" name="userModel.accountModel.totalLoan" title="待还金额" size="9" data-rule="number" value="0.0"/>
            </div>
            <label class="row-label">未还清金额：</label>
            <div class="row-input">
                <input type="text" name="userModel.accountModel.noRepay" title="未还清金额" size="9" data-rule="number" value="0.0"/>
            </div>
            <label class="row-label">平台标识：</label>
            <div class="row-input">
                <input type="text" name="userModel.accountModel.payPlatformID" title="平台标识" size="15"/>
            </div>
            <label class="row-label">平台数字标识：</label>
            <div class="row-input">
                <input type="text" name="userModel.accountModel.payPlatformNumber" title="平台数字标识" size="15"/>
            </div>
            <label class="row-label">第三方平台注册日期：</label>
            <div class="row-input">
                <input type="text" name="userModel.accountModel.payPlatformRegisterDate" value="2017-01-01" data-toggle="datepicker" size="13">
            </div>
            <label class="row-label">第三方平台授权日期：</label>
            <div class="row-input">
                <input type="text" name="userModel.accountModel.payPlatformAuthDate" value="2017-01-01" data-toggle="datepicker" size="13">
            </div>

        </div>
    </form>

</div>
<div class="bjui-pageFooter">
    <ul>
        <li>
            <button type="button" class="btn-close btn" data-icon="close"><i class="fa fa-close"></i> 取消</button>
        </li>
        <li>
            <button type="submit" class="btn-default btn" data-icon="save"><i class="fa fa-save"></i> 保存</button>
        </li>
    </ul>
</div>
<script type="text/javascript">
    $(function () {
    });
</script>